package com.ktgj.other.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 专车订单辅营产品对象 rc_order_product
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
public class RcOrderProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 通用产品ID */
    private Long productid;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderid;

    /** 产品类型：1、Plus代金券 */
    @Excel(name = "产品类型：1、Plus代金券")
    private Long typeid;

    /** 锁定代金券记录编号 */
    @Excel(name = "锁定代金券记录编号")
    private Long couponnum;

    /** 代金券金额 */
    @Excel(name = "代金券金额")
    private BigDecimal couponamount;

    /** 1、锁定2、解锁（使用）3、撤销锁定4、退款 */
    @Excel(name = "1、锁定2、解锁", readConverterExp = "使=用")
    private Integer couponstatus;

    public void setProductid(Long productid) 
    {
        this.productid = productid;
    }

    public Long getProductid() 
    {
        return productid;
    }
    public void setOrderid(Long orderid) 
    {
        this.orderid = orderid;
    }

    public Long getOrderid() 
    {
        return orderid;
    }
    public void setTypeid(Long typeid) 
    {
        this.typeid = typeid;
    }

    public Long getTypeid() 
    {
        return typeid;
    }
    public void setCouponnum(Long couponnum) 
    {
        this.couponnum = couponnum;
    }

    public Long getCouponnum() 
    {
        return couponnum;
    }
    public void setCouponamount(BigDecimal couponamount) 
    {
        this.couponamount = couponamount;
    }

    public BigDecimal getCouponamount() 
    {
        return couponamount;
    }
    public void setCouponstatus(Integer couponstatus) 
    {
        this.couponstatus = couponstatus;
    }

    public Integer getCouponstatus() 
    {
        return couponstatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productid", getProductid())
            .append("orderid", getOrderid())
            .append("typeid", getTypeid())
            .append("couponnum", getCouponnum())
            .append("couponamount", getCouponamount())
            .append("couponstatus", getCouponstatus())
            .append("createtime", getCreateTime())
            .toString();
    }
}
